package cn.yunhe.bean;

import java.util.ArrayList;
import java.util.List;

public class Comment {

    private int comId;
    private int userId;
    private String comTime;
    private String context;


    private Scenery sce=new Scenery();
    private Hotel hotel=new Hotel();
    private Travel travel=new Travel();
    private List<Reply> replyList=new ArrayList<>();

    public Comment() {
    }
    public Comment( String context,String comTime) {
        this.context = context;
        this.comTime = comTime;
    }

    public Comment(int comId, int userId, String comTime, String context, Scenery sce, Hotel hotel, Travel travel, List<Reply> replyList) {
        this.comId = comId;
        this.userId = userId;
        this.comTime = comTime;
        this.context = context;
        this.sce = sce;
        this.hotel = hotel;
        this.travel = travel;
        this.replyList = replyList;
    }

    public int getComId() {
        return comId;
    }

    public void setComId(int comId) {
        this.comId = comId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getComTime() {
        return comTime;
    }

    public void setComTime(String comTime) {
        this.comTime = comTime;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Scenery getSce() {
        return sce;
    }

    public void setSce(Scenery sce) {
        this.sce = sce;
    }

    public Hotel getHotel() {
        return hotel;
    }

    public void setHotel(Hotel hotel) {
        this.hotel = hotel;
    }

    public Travel getTravel() {
        return travel;
    }

    public void setTravel(Travel travel) {
        this.travel = travel;
    }

    public List<Reply> getReplyList() {
        return replyList;
    }

    public void setReplyList(List<Reply> replyList) {
        this.replyList = replyList;
    }
}
